<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: IAppDelegate类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_i_app_delegate-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">IAppDelegate类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>应用程序的代理接口  
 <a href="class_i_app_delegate.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_i_application_8h_source.html">IApplication.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9ce226b41fdcabcf8d6e53ab192c4036"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_app_delegate.html#a9ce226b41fdcabcf8d6e53ab192c4036">appInit</a> ()=0</td></tr>
<tr class="memdesc:a9ce226b41fdcabcf8d6e53ab192c4036"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化应用程序  <a href="#a9ce226b41fdcabcf8d6e53ab192c4036">更多...</a><br /></td></tr>
<tr class="separator:a9ce226b41fdcabcf8d6e53ab192c4036"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69ce67a00b683b505a993fc1df3da31f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_size.html">Size</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_app_delegate.html#a69ce67a00b683b505a993fc1df3da31f">getWindowsSize</a> ()=0</td></tr>
<tr class="memdesc:a69ce67a00b683b505a993fc1df3da31f"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取要创建的窗口大小  <a href="#a69ce67a00b683b505a993fc1df3da31f">更多...</a><br /></td></tr>
<tr class="separator:a69ce67a00b683b505a993fc1df3da31f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a251bea816ad845790ea852f032b7fc3d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_app_delegate.html#a251bea816ad845790ea852f032b7fc3d">appEnterBackground</a> ()=0</td></tr>
<tr class="memdesc:a251bea816ad845790ea852f032b7fc3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">当程序进入后台时调用次接口  <a href="#a251bea816ad845790ea852f032b7fc3d">更多...</a><br /></td></tr>
<tr class="separator:a251bea816ad845790ea852f032b7fc3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4764f920e946c5028e6539dacb22cc83"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_app_delegate.html#a4764f920e946c5028e6539dacb22cc83">appEnterForeground</a> ()=0</td></tr>
<tr class="memdesc:a4764f920e946c5028e6539dacb22cc83"><td class="mdescLeft">&#160;</td><td class="mdescRight">程序进入前台时调用次接口  <a href="#a4764f920e946c5028e6539dacb22cc83">更多...</a><br /></td></tr>
<tr class="separator:a4764f920e946c5028e6539dacb22cc83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>应用程序的代理接口 </p>
<p>开发者需要重写这个接口 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a251bea816ad845790ea852f032b7fc3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a251bea816ad845790ea852f032b7fc3d">&#9670;&nbsp;</a></span>appEnterBackground()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void IAppDelegate::appEnterBackground </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>当程序进入后台时调用次接口 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a4764f920e946c5028e6539dacb22cc83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4764f920e946c5028e6539dacb22cc83">&#9670;&nbsp;</a></span>appEnterForeground()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void IAppDelegate::appEnterForeground </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>程序进入前台时调用次接口 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a9ce226b41fdcabcf8d6e53ab192c4036"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ce226b41fdcabcf8d6e53ab192c4036">&#9670;&nbsp;</a></span>appInit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool IAppDelegate::appInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>初始化应用程序 </p>
<dl class="section return"><dt>返回</dt><dd>bool 如果初始化成功，返回 true 开发者可以在这里进行一下程序的初始化,如初始化场景，设置帧率等 </dd></dl>

</div>
</div>
<a id="a69ce67a00b683b505a993fc1df3da31f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69ce67a00b683b505a993fc1df3da31f">&#9670;&nbsp;</a></span>getWindowsSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_size.html">Size</a> IAppDelegate::getWindowsSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取要创建的窗口大小 </p>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_size.html" title="尺寸">Size</a> 开发者可以重写这个函数，以提供适当的窗口大小 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/win32/<a class="el" href="_i_application_8h_source.html">IApplication.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
